<template>
 <div>
  <p>应付金额：<span>{{ totalMoney.toFixed(2) }} </span>元</p>
  <div class="pay">
    <dl>
      <dt></dt>
      <dd>微信付款</dd>
    </dl>
    <dl>
     <dt></dt>
     <dd>支付宝付款</dd>
   </dl>
  </div>
  <div class="card">
    <p>添加银行卡：</p>
    <select name="" id="">
      <option value="">工商银行</option>
      <option value="">农业银行</option>
      <option value="">中国银行</option>
      <option value="">建设银行</option>
      <option value="">招商银行</option>
      <option value="">...</option>
    </select>
  </div>
 </div>
</template>
<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState(['totalMoney'])
  }
}
</script>
<style lang="scss" scoped>
p:nth-of-type(1) {
  box-sizing: border-box;
  padding: 0 20px;
  margin-top: 20px;
  font-size: 16px;
  color: #666;
  font-weight: bold;
  span{
    color: red;
  }
}
.pay {
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  height: 200px;
  dl{
    width: 40%;
    height: 100%;
    dt{
      width: 100%;
      height: 80%;
    }
    dd{
      width: 100%;
      height: 20%;
      font-size: 12px;
      color: #666;
      justify-content: center;
      display: flex;
      align-items: center;
    }
  }
  dl:nth-of-type(1) dt{
      background: url(../../assets/weixin.png) no-repeat;
      background-size: 100% 100%;
  }
  dl:nth-of-type(2) dt{
    background: url(../../assets/zhifubao.png) no-repeat;
    background-size: 100% 100%;
  }
}
.card {
  width: 100%;
  display: flex;
  box-sizing: border-box;
  padding: 20px 20px;
  flex-direction: column;
  align-items: flex-end;
  select{
    margin-top: 20px;
    width:100px;
    background:  #fff;
  }
}
</style>
